﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business.EditOrderUC;
using Model.Entities;
using Nethouse.Lib.Mvp;

namespace SampleWeb.WUC
{
    public partial class Show : MvpUserControl<IShowOrderView>, IShowOrderView
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string OrderNumber
        {
            get { return tbOrderNo.Text; } 
            set { tbOrderNo.Text = value; }
        }

        public IList<OrderRow> OrderRowList { set { setOrderRowList(value); } }

        private void setOrderRowList(IList<OrderRow> orderRowList)
        {
            grvOrderRows.DataSource = orderRowList;
            grvOrderRows.DataBind();
        }

    }
}